class MyArray<E>{
    public Object[] objects=new Object[10];
    public void setObjects(int pos,E val){
        objects[pos]=val;
    }
    public E getObjects(int pos){
        return (E)objects[pos];

    }
}
public class Test2 {
    public static void main(String[] args) {
        MyArray<Integer> myArray=new MyArray();
        myArray.setObjects(1,1);
        myArray.getObjects(1);
        Integer s=myArray.getObjects(1);
        System.out.println(s);
    }


}

